package com.hr.system.mapper;

import java.util.List;
import com.hr.system.domain.SysDeduction;

/**
 * 员工工资扣除项Mapper接口
 * 
 * @author ruoyi
 * @date 2021-04-29
 */
public interface SysDeductionMapper 
{
    /**
     * 查询员工工资扣除项
     * 
     * @param id 员工工资扣除项ID
     * @return 员工工资扣除项
     */
    public SysDeduction selectSysDeductionById(Long id);

    /**
     * 查询员工工资扣除项
     *
     * @param userId 员工工资扣除项ID
     * @return 员工工资扣除项
     */
    public SysDeduction selectSysDeductionByUserId(Long userId);

    /**
     * 查询员工工资扣除项列表
     * 
     * @param sysDeduction 员工工资扣除项
     * @return 员工工资扣除项集合
     */
    public List<SysDeduction> selectSysDeductionList(SysDeduction sysDeduction);

    /**
     * 新增员工工资扣除项
     * 
     * @param sysDeduction 员工工资扣除项
     * @return 结果
     */
    public int insertSysDeduction(SysDeduction sysDeduction);

    /**
     * 修改员工工资扣除项
     * 
     * @param sysDeduction 员工工资扣除项
     * @return 结果
     */
    public int updateSysDeduction(SysDeduction sysDeduction);

    /**
     * 删除员工工资扣除项
     * 
     * @param id 员工工资扣除项ID
     * @return 结果
     */
    public int deleteSysDeductionById(Long id);

    /**
     * 批量删除员工工资扣除项
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysDeductionByIds(String[] ids);
}
